package com.tjetc.service;

import com.github.pagehelper.PageInfo;
import com.tjetc.domain.Notice;
import com.tjetc.vo.Result;

import java.util.List;

public interface NoticeService{


    int deleteByPrimaryKey(Integer id);

    int insert(Notice record);

    int insertSelective(Notice record);

    Notice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Notice record);

    int updateByPrimaryKey(Notice record);

    List<Notice> findAllNotice();

    Result getById(Integer id);

    PageInfo<Notice> findByPage(String title, Integer pageNum, Integer pageSize);

    Result addNotice(Notice notice);

    Result deleteNotice(Integer id);
}
